﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddWarehouse.aspx.cs" Inherits="WMS6.Web.Administration.AddWarehouse" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>AddWarehouse</title>
   <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>
    <script src="../Js/util.js" id="js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>   
    <script src="../Js/Verification.js" type="text/javascript"></script> 
    
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        
        function newCreateWh()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "AddWarehouse.aspx?from="+escape(from);
            return false;
        }

        function confirmMsg(code) {
            if (code == "F1650_007") {
                if (confirm('<%=GetGlobalMsgResource("F1650_007") %>')) {
                    return true;
                }
                else {
                    return false;
                }
            }
        }
   </script>     
</head>
<body>
    <form id="F1066" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblAllocateRule" runat="server" 
                            CssClass="label_header" Text="仓库" meta:resourcekey="lblAllocateRule"></asp:Label></td>
                    <td><asp:Button ID="btnGoBack" runat="server" CssClass="button" Enabled="False" 
                            Text="<%$Resources:ButtonResource,btnGoBack%>" OnClick="btnGoBack_Click"  /></td>
                    <td><asp:Button ID="btnNew" runat="server" CssClass="button" Enabled="False" 
                            Text="<%$Resources:ButtonResource,btnNew%>"  AccessKey="n" OnClientClick="newCreateWh();" 
                            /></td>
                    <td><asp:Button ID="btnSave" runat="server" CssClass="button" Enabled="False" 
                            Text="<%$Resources:ButtonResource,btnSave%>" AccessKey="s" OnClick="btnSave_Click" 
                               /></td>
                    <td><asp:Button ID="btnDelete" runat="server" CssClass="button" Enabled="False" 
                            Text="<%$Resources:ButtonResource,btnDelete%>"  AccessKey="d"                          
                            OnClientClick="javascript:if(confirmMsg('F1650_007')) return true; else return false;" 
                            OnClick="btnDelete_Click"    /></td>
                    <td><asp:Button ID="btnCopy" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnCopy%>" 
                            AccessKey="c" OnClick="btnCopy_Click" 
                            /></td>
                </tr>
            </table>
        </div>
        
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
            <div>
                <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                    meta:resourcekey="lblMsg"></asp:Label>
            </div>
            
            <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur" onclick="setTab('one',1,2)" id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" 
                    meta:resourcekey="one1">常规</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1"></div>
            </div>  
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL2">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,2)"
                id="divM2">
                <asp:Label ID="one2" CssClass="navigationlabel" runat="server" meta:resourcekey="one2">地址</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR2">
                </div>
            </div>     
        </div>
        
        
        <div id="div_content">
             <div id="con_one_1" style="display: block;">
                 <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                     <tr>
                         <td width="180">
                             <asp:Label  ID="lblWhDbName" runat="server" CssClass="label" Text="仓库名" 
                                 meta:resourcekey="lblWhDbName" ></asp:Label><span class="must_input">*</span>
                         </td>
                         <td width="180">
                             &nbsp;</td>
                         <td width="180">
                             &nbsp;</td>
                         <td width="180">
                             &nbsp;</td>
                     </tr>
                     <tr>
                         <td>
                             <asp:TextBox ID="txtWhDbName" runat="server" CssClass="textbox" MaxLength="30" 
                                 meta:resourcekey="txtWhDbName"></asp:TextBox>
                         </td>
                         <td>
                             &nbsp;</td>
                         <td>
                             &nbsp;</td>
                          <td>
                              &nbsp;</td>
                     </tr>
                     <tr>
                         <td width="180">
                             <asp:Label ID="lblWbDbDescr" runat="server" CssClass="label" Text="仓库描述" 
                                 meta:resourcekey="lblWbDbDescr"></asp:Label>
                         </td>
                         <td width="180">
                             &nbsp;</td>
                         <td width="180">
                             &nbsp;</td>
                         <td width="180">
                             &nbsp;</td>
                     </tr>
                     <tr>
                         <td colspan="2">
                             <asp:TextBox ID="txtWbDbDescr" runat="server" CssClass="largetextbox" 
                                 MaxLength="100" meta:resourcekey="txtWbDbDescr"></asp:TextBox>
                         </td>
                         
                         <td>
                             &nbsp;</td>
                          <td>
                              &nbsp;</td>
                     </tr>
                      <tr>
                         <td width="180">
                             <asp:Label ID="lblDbLoginID" runat="server" CssClass="label" Text="登录用户" 
                                 meta:resourcekey="lblDbLoginID"></asp:Label>
                         </td>
                         <td width="180">
                             &nbsp;</td>
                         <td width="180">
                             &nbsp;</td>
                         <td width="180">
                             &nbsp;</td>
                     </tr>
                     <tr>
                         <td colspan="2">
                             <asp:TextBox ID="txtDbLoginID" runat="server" CssClass="textbox" 
                                 MaxLength="100" meta:resourcekey="txtDbLoginID"></asp:TextBox>
                         </td>
                         
                         <td>
                             &nbsp;</td>
                          <td>
                              &nbsp;</td>
                     </tr>
                      <tr>
                         <td width="180">
                             <asp:Label ID="lblDbLoginPasswd" runat="server" CssClass="label" Text="登录密码" 
                                 meta:resourcekey="lblDbLoginPasswd"></asp:Label>
                         </td>
                         <td width="180">
                             &nbsp;</td>
                         <td width="180">
                             &nbsp;</td>
                         <td width="180">
                             &nbsp;</td>
                     </tr>
                     <tr>
                         <td colspan="2">
                             <asp:TextBox ID="txtDbLoginPasswd" runat="server" CssClass="textbox" 
                                 meta:resourcekey="txtDbLoginPasswd" ></asp:TextBox>
                         </td>
                         
                         <td>
                             &nbsp;</td>
                          <td>
                              &nbsp;</td>
                     </tr>
                     <tr style="height:10px;">
                         <td width="180"></td>
                         <td width="180"></td>
                         <td width="180"></td>
                         <td width="180"></td>
                     </tr>
                     <tr>
                         <td>
                            <asp:CheckBox ID="chkIsActive" runat="server" CssClass="checkbox" Text="启用" 
                                 Checked="True" meta:resourcekey="chkIsActive" />
                         </td>
                         <td></td>
                         <td></td>
                         <td></td>
                     </tr>
          
                 </table>
             </div>
             <div id="con_one_2" style="display: none;">
                        <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblCity" runat="server" CssClass="label" Text="城市" meta:resourcekey="lblCity"></asp:Label>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblProvince" runat="server" CssClass="label" Text="省份" meta:resourcekey="lblProvince"></asp:Label>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblContact1" runat="server" CssClass="label" Text="联系人1" meta:resourcekey="lblContact1"></asp:Label>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblContact2" runat="server" CssClass="label" Text="联系人2" meta:resourcekey="lblContact2"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtCity" runat="server" CssClass="textbox" meta:resourcekey="txtCity"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtProvince" runat="server" CssClass="textbox" meta:resourcekey="txtProvince"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtContact1" runat="server" CssClass="textbox" meta:resourcekey="txtContact1"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtConatact2" runat="server" CssClass="textbox" meta:resourcekey="txtConatact2"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblZip" runat="server" CssClass="label" Text="邮编" meta:resourcekey="lblZip"></asp:Label>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblCountry" runat="server" CssClass="label" Text="国家" meta:resourcekey="lblCountry"></asp:Label>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblPhone1" runat="server" CssClass="label" Text="电话" meta:resourcekey="lblPhone1"></asp:Label>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblPhone2" runat="server" CssClass="label" Text="电话" meta:resourcekey="lblPhone2"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtZIP" runat="server" CssClass="textbox" MaxLength="6" onblur="Javascript:dataVer._IsPost(this,'lblMsg')"
                                        meta:resourcekey="txtZIP"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtCountry" runat="server" CssClass="textbox" MaxLength="30" meta:resourcekey="txtCountry"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtPhone1" runat="server" CssClass="textbox" MaxLength="30" onblur="Javascript:dataVer._IsPhone(this,'lblMsg')"
                                        meta:resourcekey="txtPhone1"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtPhone2" runat="server" CssClass="textbox" MaxLength="30" onblur="Javascript:dataVer._IsPhone(this,'lblMsg')"
                                        meta:resourcekey="txtPhone2"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblAddress" runat="server" CssClass="label" Text="地址" meta:resourcekey="lblAddress"></asp:Label>
                                </td>
                                <td width="180">
                                    &nbsp;
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblFax1" runat="server" CssClass="label" Text="传真" meta:resourcekey="lblFax1"></asp:Label>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblFax2" runat="server" CssClass="label" Text="传真" meta:resourcekey="lblFax2"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="360px" colspan="2" rowspan="3">
                                    <asp:TextBox ID="txtAddress" TextMode="MultiLine" runat="server" CssClass="largetextarea"
                                        meta:resourcekey="txtAddress"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtFax1" runat="server" CssClass="textbox" MaxLength="30" onblur="Javascript:dataVer._IsFax(this,'lblMsg')"
                                        meta:resourcekey="txtFax1"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtFax2" runat="server" CssClass="textbox" MaxLength="30" onblur="Javascript:dataVer._IsFax(this,'lblMsg')"
                                        meta:resourcekey="txtFax2"></asp:TextBox>
                                </td>
                            </tr>
                            <tr style="height: 10px;">
                                <td width="180">
                                    <asp:Label ID="lblEmail1" runat="server" CssClass="label" Text="Email" meta:resourcekey="lblEmail1"></asp:Label>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblEmail2" runat="server" CssClass="label" Text="Email" meta:resourcekey="lblEmail2"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtEmail1" runat="server" CssClass="textbox" MaxLength="30" onblur="Javascript:dataVer._IsMail(this,'lblMsg')"
                                        meta:resourcekey="txtEmail1"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtEmail2" runat="server" CssClass="textbox" MaxLength="30" onblur="Javascript:dataVer._IsMail(this,'lblMsg')"
                                        meta:resourcekey="txtEmail2"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
        </div>           
              <input type="hidden" id="hdnFlag"  runat="server" value="0" >
                  <input id="hdnDbConfigID" runat="server" type="hidden"></input>
                  </input>
                </input>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnNew" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnCopy" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>     
        
    </div>
              <input type="hidden" id="hdnFrom" runat="server" />
    </form>
</body>
</html>
